package com.tanhua.model.vo;

import com.tanhua.model.db.UserInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lamy
 * @version 1.0
 * @ClassName: SimilarVo
 * @date 2021-12-27 20:49:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SimilarVo {
    private Integer id ;
    private String avatar;
    public static SimilarVo init(UserInfo userInfo){
        SimilarVo similarVo = new SimilarVo();
        similarVo.setId(userInfo.getId().intValue());
        similarVo.setAvatar(userInfo.getAvatar());
        return similarVo;
    }
}
